﻿using DualReferralClient.View;
using System;
using System.Windows.Forms;

namespace DualReferralClient
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //起始窗体居中
            LoginForm loginForm = new LoginForm();
            loginForm.StartPosition = FormStartPosition.CenterScreen;
            Application.Run(loginForm);
            if (loginForm.DialogResult.Equals(DialogResult.OK))
            {
                MainForm mainForm = new MainForm();
                mainForm.StartPosition = FormStartPosition.CenterScreen;
                Application.Run(mainForm);
            }
        }
    }
}
